package com.siyuanren.gcocp.service;

import com.siyuanren.gcocp.entity.WxCourseContent;
import com.siyuanren.gcocp.entity.WxUserFavorite;
import com.siyuanren.gcocp.vo.QueryFavoritesVO;

import java.util.List;

/**
 * Created by   anxing
 * Project_name gcocp-parent
 * Path         com.siyuanren.gcocp.service
 * Date         2018/4/17
 * Time         15:18
 * Description 课程内容收藏服务
 */
public interface FavoriteService {
    /**
     * 加入收藏
     * @param userFavorite
     */
    public int addFavoriteContent(WxUserFavorite userFavorite);

    /**
     * 移除收藏内容
     * @param favoriteId
     */
    public void removeFavoriteContent(int favoriteId);

    /**
     * 返回收藏内容列表
     * @param queryFavoritesVO
     * @return
     */
    public List<WxCourseContent> getFavorierList(QueryFavoritesVO queryFavoritesVO) throws Exception;
}
